package com.zbkj.crmeb.upload.service;

import com.zbkj.crmeb.upload.vo.FileResultVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
* @author Mr.Zhang
* @Description StoreProductService 接口
* @since 2020-05-06
*/
public interface UploadService {
    FileResultVo image(MultipartFile multipart, String model, Integer pid) throws IOException;

    FileResultVo imageV2(MultipartFile multipart, String model, Integer pid);

    FileResultVo file(MultipartFile multipart, String model, Integer pid) throws IOException;

    FileResultVo ossImage(MultipartFile multipart, String model, Integer pid, Integer merId);
    
    FileResultVo ossVideo(MultipartFile multipart, String model, Integer pid);

    // TODO 改版方法禁用, 需要重构
//    String zipImage(MultipartFile[] files);
    
    // TODO 改版方法禁用, 需要重构
//    String uploadFolder(String path);

    String timingUpload(String path);

}
